package com.zhl.model.dict.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhl.model.dict.entity.SysDictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 字典表 Mapper 接口
 * </p>
 *
 * @author 宋建华
 * @since 2020-09-27
 */
public interface SysDictionaryMapper extends BaseMapper<SysDictionary> {

    List<SysDictionary> selectListByType(String typeList);

    List<SysDictionary> selectListByParentId(String parentId);

    String queryDictValue(String dictCode);

    public String queryTableDictTextByKey(@Param("table") String table, @Param("text") String text
            , @Param("code") String code, @Param("key") String key);

}
